var app = angular.module('tmApp',[]);
app.controller('tmController',function($scope,$http){

    /*获取数据操作*/
    $scope.getTeacherMsg = function () {
        $http({
            method: 'POST',
            url: 'teacher/getTeacherMsg.do',
            data: $.param({"tname":$scope.tname}),
            headers: { 'Content-Type': 'application/x-www-form-urlencoded'}
        }).then(function successCallback(response) {
            console.log(response);
            $scope.list = response.data.tmsg;
        }, function errorCallback(response) {
            console.log("获取教师信息失败！");
        });
    };

    $scope.getTeacherMsg();


});